package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by kelvin.nguyen on 7/24/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderDetailsInfo implements Serializable{
    private Date createdDate;
    private int orderStatus;
    private String strOrderStatus;
    private String paymentStatus;
    private int paymentMethod;
    private String strPaymentMethod;
    private boolean isCancelable;


    @JsonProperty("CreatedDate")
    @JsonFormat(pattern = "MM/dd/yyyy HH:mm:ss", timezone = "ICT")
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }


    @JsonProperty("OrderStatus")
    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    @JsonProperty("StrOrderStatus")
    public void setStrOrderStatus(String strOrderStatus) {
        this.strOrderStatus = strOrderStatus;
    }

    @JsonProperty("PaymentStatus")
    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    @JsonProperty("PaymentMethod")
    public void setPaymentMethod(int paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    @JsonProperty("StrPaymentMethod")
    public void setStrPaymentMethod(String strPaymentMethod) {
        this.strPaymentMethod = strPaymentMethod;
    }

    @JsonProperty("IsCancelable")
    public void setCancelable(boolean isCancelable) {
        this.isCancelable = isCancelable;
    }


    public Date getCreatedDate() {
        return createdDate;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public String getStrOrderStatus() {
        return strOrderStatus;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public int getPaymentMethod() {
        return paymentMethod;
    }

    public String getStrPaymentMethod() {
        return strPaymentMethod;
    }

    public boolean isCancelable() {
        return isCancelable;
    }
}
